package net.studou.vo;

import net.studou.annotation.IConvertAnnotation;
import net.studou.annotation.VerifyCodeAnnotation;
import net.studou.convert.TaskCountConvert;

public class VUser {

	private static final long serialVersionUID = -106072210471851354L;
	
	private Integer userId;
	private String userName;
	private String password;
	private String password2;
	private String operateCode;
	private String operateCode2;
	private String tbUrl;
	private String shopKeeper;
	private String qq;
	private String parentUserName;
	@VerifyCodeAnnotation
	private String code;

	// 1:检查推荐人，0：检查用户名，注册时用
	private int type; 

	//是不是限制账户
	private boolean forbid; 
	
	//限制到期时间
	@IConvertAnnotation(key = "modifyStatusTime:endForbidDateTime", convertClassName = "DateTimeToStringConvert")
	private String endForbidDateTime;  

	// 页面显示是否是vip，值是vip到期时间
	@IConvertAnnotation(key = "userPopedoms:vip", convertClassName = "VIPConvert")
	private String vip; 
	
	// VIP到期时间
	@IConvertAnnotation(key = "userPopedoms:vipEndTime", convertClassName = "VIPConvert")
	private String vipEndTime; 
	
	// 上次登录时间
	@IConvertAnnotation(key = "lastLoginTime:lastLoginTime", convertClassName = "DateTimeToStringConvert")
	private String lastLoginTime; 
	
	// 上次登录IP
	private String lastLoginIP; 
	
	// 账户余额
	private Double money; 
	
	// 账户发布点
	private Double publishPoint; 
	
	// 账户奖励发布点
	private Double publishPointReward; 
	
	// 积分
	private Integer integral;
	
	// 等级图片地址
	@IConvertAnnotation(key = "integral:levelImg", convertClassName = "IntegralToLevelImgConvert")
	private String levelImg;
	
	// 警告
	private Integer warning;
	

	// 等待接手
	@IConvertAnnotation(key = "ownTasks:task1", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_ONE)
	private String task1; 
	
	// 等待输入小号
	@IConvertAnnotation(key = "othersTasks:task2", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_TWO)
	private String task2; 
	
	// 等待审核小号
	@IConvertAnnotation(key = "ownTasks:task3", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_THREE)
	private String task3;
	
	// 等待付款
	@IConvertAnnotation(key = "othersTasks:task4", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_FOUR)
	private String task4;
	
	// 待发货
	@IConvertAnnotation(key = "ownTasks:task5", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_FIVE)
	private String task5;
	
	// 等待收货
	@IConvertAnnotation(key = "othersTasks:task6", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_SIX)
	private String task6;
	
	// 等待确认
	@IConvertAnnotation(key = "ownTasks:task7", convertClassName = "TaskCountConvert", param = "" + TaskCountConvert.TASK_STATE_SEVEN)
	private String task7;

	
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}

	public String getOperateCode() {
		return operateCode;
	}

	public void setOperateCode(String operateCode) {
		this.operateCode = operateCode;
	}

	public String getOperateCode2() {
		return operateCode2;
	}

	public void setOperateCode2(String operateCode2) {
		this.operateCode2 = operateCode2;
	}

	public String getTbUrl() {
		return tbUrl;
	}

	public void setTbUrl(String tbUrl) {
		this.tbUrl = tbUrl;
	}

	public String getShopKeeper() {
		return shopKeeper;
	}

	public void setShopKeeper(String shopKeeper) {
		this.shopKeeper = shopKeeper;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getParentUserName() {
		return parentUserName;
	}

	public void setParentUserName(String parentUserName) {
		this.parentUserName = parentUserName;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getVip() {
		return vip;
	}

	public void setVip(String vip) {
		this.vip = vip;
	}

	public String getVipEndTime() {
		return vipEndTime;
	}

	public void setVipEndTime(String vipEndTime) {
		this.vipEndTime = vipEndTime;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIP() {
		return lastLoginIP;
	}

	public void setLastLoginIP(String lastLoginIP) {
		this.lastLoginIP = lastLoginIP;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Double getPublishPoint() {
		return publishPoint;
	}

	public void setPublishPoint(Double publishPoint) {
		this.publishPoint = publishPoint;
	}

	public Double getPublishPointReward() {
		return publishPointReward;
	}

	public void setPublishPointReward(Double publishPointReward) {
		this.publishPointReward = publishPointReward;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getLevelImg() {
		return levelImg;
	}

	public void setLevelImg(String levelImg) {
		this.levelImg = levelImg;
	}

	public Integer getWarning() {
		return warning;
	}

	public void setWarning(Integer warning) {
		this.warning = warning;
	}

	public String getTask1() {
		return task1;
	}

	public void setTask1(String task1) {
		this.task1 = task1;
	}

	public String getTask2() {
		return task2;
	}

	public void setTask2(String task2) {
		this.task2 = task2;
	}

	public String getTask3() {
		return task3;
	}

	public void setTask3(String task3) {
		this.task3 = task3;
	}

	public String getTask4() {
		return task4;
	}

	public void setTask4(String task4) {
		this.task4 = task4;
	}

	public String getTask5() {
		return task5;
	}

	public void setTask5(String task5) {
		this.task5 = task5;
	}

	public String getTask6() {
		return task6;
	}

	public void setTask6(String task6) {
		this.task6 = task6;
	}

	public String getTask7() {
		return task7;
	}

	public void setTask7(String task7) {
		this.task7 = task7;
	}

	public boolean isForbid() {
		return forbid;
	}

	public void setForbid(boolean forbid) {
		this.forbid = forbid;
	}

	public String getEndForbidDateTime() {
		return endForbidDateTime;
	}

	public void setEndForbidDateTime(String endForbidDateTime) {
		this.endForbidDateTime = endForbidDateTime;
	}

	
}